package com.weiyuwqj.api.model.vo;

import java.io.Serializable;

/**
 * Created by huzj on 2017/4/14.
 */
public class FundData implements Serializable{
    private String orderNo;

    private String amount;

    private String type; //C-充值 T-提现

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FundData fundData = (FundData) o;

        if (orderNo != null ? !orderNo.equals(fundData.orderNo) : fundData.orderNo != null) return false;
        if (amount != null ? !amount.equals(fundData.amount) : fundData.amount != null) return false;
        return type != null ? type.equals(fundData.type) : fundData.type == null;

    }

    @Override
    public int hashCode() {
        int result = orderNo != null ? orderNo.hashCode() : 0;
        result = 31 * result + (amount != null ? amount.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }
}
